package com.cheap.common.feignapi;

import com.cheap.common.dto.PageDTO;
import com.cheap.common.pojo.po.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "cheap-item-service")
public interface ItemServiceApi {

    /**
     * 分页查询商品
     */
    @GetMapping("/item/list")
    PageDTO<Item> getListByPage(Integer page, Integer size);

}
